<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.meichaoit.entity.Account"%>
<%@page import="com.meichaoit.dao.AccountDao"%>

<%

			String password = request.getParameter("newpwd");
			AccountDao dao = new AccountDao();
			
			Account account = (Account)session.getAttribute("account");
			
			account.setPassword(password);
			
			dao.update(account);
			
			response.sendRedirect("main.jsp");
	
%>
